package com.aiyige.model.eshop;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhuyakun on 2018/1/29.
 */

public class DiscountsBackup implements Parcelable {
    String id;
   String orderId;
   String type;
   String describe;
   String targetId;
   double discount;
   long createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.orderId);
        dest.writeString(this.type);
        dest.writeString(this.describe);
        dest.writeString(this.targetId);
        dest.writeDouble(this.discount);
        dest.writeLong(this.createTime);
    }

    public DiscountsBackup() {
    }

    protected DiscountsBackup(Parcel in) {
        this.id = in.readString();
        this.orderId = in.readString();
        this.type = in.readString();
        this.describe = in.readString();
        this.targetId = in.readString();
        this.discount = in.readDouble();
        this.createTime = in.readLong();
    }

    public static final Creator<DiscountsBackup> CREATOR = new Creator<DiscountsBackup>() {
        @Override
        public DiscountsBackup createFromParcel(Parcel source) {
            return new DiscountsBackup(source);
        }

        @Override
        public DiscountsBackup[] newArray(int size) {
            return new DiscountsBackup[size];
        }
    };
}
